package com.zhangx.study.demo.rpc.client;

import com.alibaba.fastjson.JSON;
import com.zhangx.study.demo.rpc.server.model.User;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

/**
 * @ClassName ClientV2
 * @Description TODO
 * @Author zhangx
 * @Date 2020/10/12 8:41
 **/
@Slf4j
public class ClientV2 {

    public static void main(String[] args) {
        Stub stub = new Stub();
        try {
            User user = stub.findUserById(11);
            log.info(JSON.toJSONString(user));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
